﻿using System;

namespace ZlenStack.EventBus.Events
{
    public class IntegrationEvent
    {
        public Guid Id { get; set; }

        public DateTimeOffset CreationDate { get; set; }

        public IntegrationEvent()
        {
            Id = Guid.NewGuid();
            CreationDate = DateTimeOffset.Now;
        }

        public IntegrationEvent(Guid id, DateTimeOffset creationDate)
        {
            Id = id;
            CreationDate = creationDate;
        }
    }
}
